package org.jeecg.modules.demo.expert.info.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.expert.info.entity.JkExpertWork;
import org.jeecg.modules.demo.expert.info.entity.JkExpertAcademic;
import org.jeecg.modules.demo.expert.info.entity.JkExpertProfile;
import org.jeecg.modules.demo.expert.info.entity.JkExpert;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.expert.info.vo.JkExpertPage;
import org.jeecg.modules.demo.expert.info.vo.JkExpertPageVo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: 专家信息表
 * @Author: jeecg-boot
 * @Date:   2025-06-07
 * @Version: V1.0
 */
public interface IJkExpertService extends IService<JkExpert> {

	/**
	 * 添加一对多
	 *
	 * @param jkExpert
	 * @param jkExpertWorkList
	 * @param jkExpertAcademicList
	 * @param jkExpertProfileList
	 */
	public void saveMain(JkExpert jkExpert,List<JkExpertWork> jkExpertWorkList,List<JkExpertAcademic> jkExpertAcademicList,List<JkExpertProfile> jkExpertProfileList) ;
	
	/**
	 * 修改一对多
	 *
   * @param jkExpert
   * @param jkExpertWorkList
   * @param jkExpertAcademicList
   * @param jkExpertProfileList
	 */
	public void updateMain(JkExpert jkExpert,List<JkExpertWork> jkExpertWorkList,List<JkExpertAcademic> jkExpertAcademicList,List<JkExpertProfile> jkExpertProfileList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);



	IPage<JkExpert> select_expert_by_code(String typeCode, Page<JkExpert> page);

	JkExpertPageVo query_jk_expert_details_by_id(String id);

	List<Map<String,String>> query_expert_by_domaincode_top5(String typeCode);

	int query_expert_by_domaincode_count(String typeCode);

}
